package com.cn.domain;

import java.io.Serializable;

public class Order implements Serializable{

    private long  ho_id; //这个订单号可以用于查询PID  //订单ID
    private long  ho_user_id;             //用户ID
    private String ho_user_name;        //用户名
    private String ho_user_address;     //用户地址
    private String ho_create_time;       //订单创建日期
    private long  ho_cost;                    //订单价格
    private int  ho_status;                //订单状态
    private int  ho_type;                      //订单类型
    
   
    private Product product;
    
	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	private OrderDetail orderDetail;//订单详情用于查询PID
    
    private User user;                     //用户  外键
    
    public OrderDetail getOrderDetail() {
		return orderDetail;
	}

	public void setOrderDetail(OrderDetail orderDetail) {
		this.orderDetail = orderDetail;
	}

	public long getHo_id() {
        return ho_id;
    }

    public void setHo_id(long ho_id) {
        this.ho_id = ho_id;
    }

    public long getHo_user_id() {
        return ho_user_id;
    }

    public void setHo_user_id(long ho_user_id) {
        this.ho_user_id = ho_user_id;
    }

    public String getHo_user_name() {
        return ho_user_name;
    }

    public void setHo_user_name(String ho_user_name) {
        this.ho_user_name = ho_user_name;
    }

    public String getHo_user_address() {
        return ho_user_address;
    }

    public void setHo_user_address(String ho_user_address) {
        this.ho_user_address = ho_user_address;
    }

    public String getHo_create_time() {
        return ho_create_time;
    }

    public void setHo_create_time(String ho_create_time) {
        this.ho_create_time = ho_create_time;
    }

    public long getHo_cost() {
        return ho_cost;
    }

    public void setHo_cost(long ho_cost) {
        this.ho_cost = ho_cost;
    }

    public int getHo_status() {
        return ho_status;
    }

    public void setHo_status(int ho_status) {
        this.ho_status = ho_status;
    }

    public int getHo_type() {
        return ho_type;
    }

    public void setHo_type(int ho_type) {
        this.ho_type = ho_type;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "Order{" +
                "ho_id=" + ho_id +
                ", ho_user_id=" + ho_user_id +
                ", ho_user_name='" + ho_user_name + '\'' +
                ", ho_user_address='" + ho_user_address + '\'' +
                ", ho_create_time='" + ho_create_time + '\'' +
                ", ho_cost=" + ho_cost +
                ", ho_status=" + ho_status +
                ", ho_type=" + ho_type +
                ", user=" + user +
                '}';
    }
}
